<%@page language="java" pageEncoding="UTF-8"%>    
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="orest.front.achieve.GetOptionAction"%>
<%@ page import="orest.common.valueobject.*" %>
<%@ page import="orest.common.util.* "%>
<%@page import="java.net.*" %>

<%        
  		String path = request.getContextPath();
  		response.setHeader("ContentType","text/xml");  
        response.setHeader("Pragma","No-Cache");   
        response.setDateHeader("Expires",0);   
        response.setHeader("Cache-Control","No-Cache");  
%>

<%  
	//request.setCharacterEncoding("gbk");
		String keyword = request.getParameter("key");
        if(keyword == null ) keyword="";
        keyword = java.net.URLEncoder.encode (keyword,"utf-8");
        String topicname = request.getParameter("topicname");
        if (topicname ==null) topicname="";
        if (keyword == null) keyword="1=1";
        
        String Item_180 =  request.getParameter("item_180");
        if (Item_180==null)  Item_180="";
     
        String WorkSpeciality =  request.getParameter("WorkSpeciality");
        if (WorkSpeciality==null)  WorkSpeciality="";
   
        String Item_dqdm =  request.getParameter("province");
 
        if (Item_dqdm==null)  Item_dqdm="";
 
        String Item_182 =  request.getParameter("item_182");
        if (Item_182==null)  Item_182="";
   
        String Item_184 =  request.getParameter("item_184");
        if (Item_184==null)  Item_184="";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META http-equiv=x-ua-compatible content=ie=7 />
<title>行业专家－国家安科网</title>
<!-- 
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="../common/css/style.css" />
-->
 
<link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />



<script language = "javascript" src = "../common/js/list.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/pool.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/page.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/search.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/setcondition.js" type = "text/javascript"></script>
<script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>

<script language="javascript">
    
    var fPath = "http://" + location.host + "/SSTA/expert/";

	//推荐科研专家
    function load_expert_pos2(divid,http){
			$.ajax({
				type:"POST",
				url:http,
				error:function(msg)
				{
					//alert("操作失败，请重试！"+msg);
				},
			    success:function(data)
			    {
			    	var data = eval("("+data+")");
					var html="";
					//alert(data.length);
					for(var i=0;i<data.length&&i<4;i++){
						html+="<li style=\"width:220px;text-align:center;margin:auto;align:center;padding-top:5px;\">";
						html+="<a  target=\"_blank\"  href=\"" + fPath +"info.jsp?expid="+data[i]['expertid']+"&title="+data[i]['expertname']+"\" >";
						
						
						/*if(data[i]['photopath']==null||data[i]['photopath']=="undefined"){
								html+="<img src=\"<%=path%>/common/images/no_photo.png\" width=\"75px\" height=\"85px;\" />";
						}else{
							if(trim(data[i]['photopath'])==""){
								html+="<img src=\"<%=path%>/common/images/no_photo.png\" width=\"75px\" height=\"85px;\" />";
							}else{
								html+="<img onerror=\"javascript:this.src='<%=path%>/common/images/no_photo.png'\"  src=\"<%=path%>/expert/image/photo/"+trim(data[i]['photopath'])+"\" width=\"75px\" height=\"85px;\" />";
							} 
						}*/
						
						html+=("<img src=\"/SSTA/expert/image/photo/"+data[i]['expertid']+".jpg\" onerror=\"javascript:this.src='<%=path%>/common/images/no_photo.png'\" width=\"75px\" height=\"85px;\" "); 
						 
						
						html+="</a>"
						
						html+="<div style=\"width:220px;\"><a  target=\"_blank\"  href=\"" + fPath +"info.jsp?expid="+data[i]['expertid']+"&title="+data[i]['expertname']+"\" >"
						
						html+="姓名："+data[i]['expertname']+"</a></div>";
						html+="<div style=\"width:220px;\">专业：";
						html+=data[i]['workspeciality'];
						html+="</div>";
						
						
						html+="</li>";
						
						html+="<div style=\"float:left;width:240px;height:2px;border-bottom:1px dashed #CCCCCC;\"></div>";
					}

					$("#"+divid).html(html);
				}
			});
	}

		


	var topicname="";
	$("document").ready(function()
	{
		
		//按键登录
	    $("#item_180").keydown(function(e){ 
			 var curkey = e.which; 
			 if(curkey == 13){
				doSearch();
	         }
	    });
	    
		//getRecommExpertList(6);
		searchkeyword = "<%=keyword%>";
        topicname = "<%=topicname%>";
		url = "http://" + location.host + "<%=path%>/expert/agent/doSearch.jsp?keyword=<%=keyword%>&no=1&count=5&jtime=" + (new Date()).getTime();       
         
        XmlHttpPool.GetRemoteData(url,showExpertResult);
       	
       /*	$.ajax({ 
				type:"POST",
				url:url,
				error:function(msg)
				{
					alert("操作失败，请重试！"+msg);
				},
			    success:function(data)
			    {
			    	//alert(data);
			    	showExpertResult(data); 
			    }
       });*/
        
		 
		//推荐专家
	    var http = "http://" + location.host + "<%=path%>/front/ExpertFrontServlet?method=getRecommendExpertList&showType=ChannelShow";
		load_expert_pos2("tjzj",http);
		
	});
	
	
</script>
<xml id="resultDom"></xml>
</head>

<body>

<%@include file="../common/toplogin.jsp"%>
<%@include file="../common/topbanner.jsp"%>
<%@include file="../common/topmenu.jsp"%>





<!--页面主体部分-->
<div id="contentmain">
    
    
    <div id="all_content_left">
    	<%@include file="../common/adleft.jsp"%>
		<div id="border_box" style="padding-bottom:30px;">
		    <div id="ind_title"><font><a href="<%=path%>/expert/search_results.jsp?key=ChannelShow='1'&topicname=推荐专家" class="blue">推荐专家</a></font><span><!-- <a href="<%=path%>/expert/search_results.jsp?key=ChannelShow='1'&topicname=推荐专家" class="blue">更多...</a> --></span></div>
			<ul id="tjzj">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</div>


	<div id="all_content_right">
	
		<form id="searchform" name="searchform" action="<%=path%>/expert/search_results.jsp" method="post" >
		    <div id="topsearchbox">
					<ul>
						<li><img src="<%=path%>/common/images/search/icon.gif" /></li>
						<li><span class="bluetitle">关键字</span></li>
						<li>
							 <input type="text" style="width:0px;border:0px;" />
		                  	 <input type="text" name="item_180" id="item_180" size="18" class="input_text_grey" value=""  />
		                 　　   <input type="hidden" name="topicname" id="topicname"  value=""/>
		                 　　   <input type="hidden" name="key" id="key" value=""/>   
						</li>
						<li>
							<a href="javascript:doSearch();"> 
								<img  src="<%=path%>/common/images/search/botton1.gif" style="border:0px;margin-top:2px;"/>
							</a>
						</li>
						<li>
							<a href="<%=path%>/expert/advancedsearch.jsp" class="blue" target="_self" >高级搜索</a>
						</li>
						<li>
							<a href="<%=path%>/expert/needforexpert.jsp" class="blue" target="_self">帮您找专家</a>
						</li>
					</ul>
			</div>
		</form>
		
		
		<div id="topsearchbox">
				<ul>
					<li id="blue_title">您的搜索条件：　　我们为您找到：条项目</li>
				</ul>
		</div>
		
		<div id="border_box">
		    <div id="ind_title"><font>当前位置：<a href="/cms" class="blue">首页</a> > <a href="<%=path%>/common/indexSearch.jsp?searchtype=2_all" class="blue">科研专家</a> > 科研专家查询结果</font><span></span></div>
			<div id="progressbar" class="bar_progress">数据加载中,请稍候......</div>
			<div id="showExpertResult" style="height:auto;padding-bottom:30px;">
				
				
				
				
    		</div>  
		</div>
	</div>
</div>






<%@include file="../common/bottom.jsp"%>

</body>
</html>

